package baseobject;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;

public class Testpaixu {
    ArrayList<String> list=new ArrayList<String>();
    public  static void main(String [] args)
    {
        final  int xcy=123;
        double b=1.10;
        double aa=123.1231231;
        double aaa=2345654.698465;
        System.out.println(b);
        System.out.println(b+aa);
        System.out.println(aaa);

        int [] a={14,52,13,16,58};

        HashMap hashMap=new HashMap();
        hashMap.put("s","");
        //.冒泡
/*        for(int i=0;i<a.length-1;i++)
        {
            for (int j=0;j<a.length-1-i;j++)
            {
                if (a[j]>a[j+1])
                {
                    int temp=a[j+1];
                    a[j+1]=a[j];
                    a[j]=temp;
                }
            }
        }
        for (int i=0;i<a.length;i++)
        {
            System.out.print(a[i]+"+");
        }*/
        //选择
        for (int i=0;i<a.length-1;i++) {
            for (int j = i; j < a.length - 1; j++) {
                if (a[i] > a[j]) {
                    int temp = a[j];
                    a[j] = a[i];
                    a[i] = temp;
                }
            }
        }
        for (int i=0;i<a.length;i++)
        {
            System.out.print(a[i]+"+");
        }

    }
}
